package com.primeton.wh.mcenter.impl.client;

import com.primeton.wh.mcenter.api.response.Result;
import com.primeton.wh.mcenter.impl.client.fallback.CapUserFallback;
import com.primeton.wh.mcenter.impl.message.param.EmployeeDetailVO;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ccms-org", configuration = {FeignAutoConfiguration.class}, fallback = CapUserFallback.class)
public interface CapUserClient {

    @GetMapping({"/org/employee"})
    public abstract Result<EmployeeDetailVO> getEmpDetail(@RequestParam("userId") Integer userId, @RequestParam("userName") String userName);
}
